﻿using System;
using System.Collections;
using System.Collections.Generic;

namespace Movies.Web.Models
{
    public static class Seed
    {
        public static IList<Movie> GetMovies()
        {
            List<Movie> movies = new List<Movie>();

            movies.Add(new Movie() { Id=1, Name = "Ghost Busters", DirectedBy = new Director()  { FirstName = "Robert", LastName="Zemmekis" }, Rating="R", RelaseDate=DateTime.Parse("9/1/1983") });
            movies[0].Actors.Add(new Actor() { FirstName = "Bill", LastName = "Murray" });
            movies[0].DirectedBy.MoviesDirected.Add(movies[0]);


            return movies;
        }


        public static IList<Actor> GetActors()
        {
            List<Actor> actors = new List<Actor>();

            actors.Add(new Actor() { Id=1, FirstName = "Faye", LastName = "Dunaway" });
            actors.Add(new Actor() { Id=2, FirstName = "Dan", LastName = "Akroyd" });

            return actors;
        }

        public static IList<Director> GetDirectors()
        {
            List<Director> directors = new List<Director>();

            directors.Add(new Director() { Id=1, FirstName = "Steven", LastName = "Speilbergo" });
            directors.Add(new Director() { Id=2, FirstName = "Robert", LastName = "Zemekis" });
            return directors;
        }

    }

}